

///////////////////////////////////////////////////////////////////////////////////////////////////
////////////////// Table 7 - Interacting Amicus  Briefs ///////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////

*** Loading the Data
use Data_OPO_Master.dta, clear
keep if use==1

*** Generating an Interaction Variable for Amicus Briefs Filed and every variable we use in the regressions

foreach var of varlist panel_odd_party_out respondent_odd_party_out petitioner_odd_party_out   coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln ///
{
	gen amicus_`var'=amicus*`var'	
}

*** Table 7 Regressions

reg sc_cert_granted amicus panel_odd_party_out amicus_panel_odd_party_out respondent_odd_party_out amicus_respondent_odd_party_out  petitioner_odd_party_out  amicus_petitioner_odd_party_out i.sc_term i.coa_circuit if civil==1, cluster(sc_term)
outreg2 amicus panel_odd_party_out  amicus_panel_odd_party_out respondent_odd_party_out  amicus_respondent_odd_party_out petitioner_odd_party_out  amicus_petitioner_odd_party_out  using "Table7.tex", nocons replace tex dec(3) drop( coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln     amicus_coa_enbanc  amicus_coa_panel_dissent  amicus_coa_lc_reversed  amicus_dismissed  amicus_sc_cert_sg_petitioner  amicus_sc_cert_sg_respondent  amicus_sc_pet_corp  amicus_sc_resp_corp  amicus_sc_pet_pro_se  amicus_sc_pet_vet_atty_ln  i.sc_term i.coa_circuit)

reg sc_cert_granted amicus panel_odd_party_out amicus_panel_odd_party_out respondent_odd_party_out amicus_respondent_odd_party_out  petitioner_odd_party_out  amicus_petitioner_odd_party_out  coa_enbanc coa_panel_dissent coa_lc_reversed dismissed  amicus_coa_enbanc  amicus_coa_panel_dissent  amicus_coa_lc_reversed  amicus_dismissed i.sc_term i.coa_circuit  if civil==1, cluster(sc_term)
outreg2 amicus panel_odd_party_out  amicus_panel_odd_party_out respondent_odd_party_out  amicus_respondent_odd_party_out petitioner_odd_party_out  amicus_petitioner_odd_party_out  using "Table7.tex", nocons append tex dec(3)drop( coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln     amicus_coa_enbanc  amicus_coa_panel_dissent  amicus_coa_lc_reversed  amicus_dismissed  amicus_sc_cert_sg_petitioner  amicus_sc_cert_sg_respondent  amicus_sc_pet_corp  amicus_sc_resp_corp  amicus_sc_pet_pro_se  amicus_sc_pet_vet_atty_ln  i.sc_term i.coa_circuit)

reg sc_cert_granted amicus panel_odd_party_out amicus_panel_odd_party_out respondent_odd_party_out amicus_respondent_odd_party_out  petitioner_odd_party_out  amicus_petitioner_odd_party_out  sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  amicus_sc_cert_sg_petitioner  amicus_sc_cert_sg_respondent  amicus_sc_pet_corp  amicus_sc_resp_corp  amicus_sc_pet_pro_se  amicus_sc_pet_vet_atty_ln  i.sc_term i.coa_circuit  if civil==1, cluster(sc_term)
outreg2 amicus panel_odd_party_out  amicus_panel_odd_party_out respondent_odd_party_out  amicus_respondent_odd_party_out petitioner_odd_party_out  amicus_petitioner_odd_party_out  using "Table7.tex", nocons append tex dec(3)drop( coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln     amicus_coa_enbanc  amicus_coa_panel_dissent  amicus_coa_lc_reversed  amicus_dismissed  amicus_sc_cert_sg_petitioner  amicus_sc_cert_sg_respondent  amicus_sc_pet_corp  amicus_sc_resp_corp  amicus_sc_pet_pro_se  amicus_sc_pet_vet_atty_ln  i.sc_term i.coa_circuit)

reg sc_cert_granted amicus panel_odd_party_out amicus_panel_odd_party_out respondent_odd_party_out amicus_respondent_odd_party_out  petitioner_odd_party_out  amicus_petitioner_odd_party_out    coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln     amicus_coa_enbanc  amicus_coa_panel_dissent  amicus_coa_lc_reversed  amicus_dismissed  amicus_sc_cert_sg_petitioner  amicus_sc_cert_sg_respondent  amicus_sc_pet_corp  amicus_sc_resp_corp  amicus_sc_pet_pro_se  amicus_sc_pet_vet_atty_ln  i.sc_term i.coa_circuit if civil==1 , cluster(sc_term)
outreg2 amicus panel_odd_party_out  amicus_panel_odd_party_out respondent_odd_party_out  amicus_respondent_odd_party_out petitioner_odd_party_out  amicus_petitioner_odd_party_out  using "Table7.tex", nocons append tex dec(3)drop( coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln     amicus_coa_enbanc  amicus_coa_panel_dissent  amicus_coa_lc_reversed  amicus_dismissed  amicus_sc_cert_sg_petitioner  amicus_sc_cert_sg_respondent  amicus_sc_pet_corp  amicus_sc_resp_corp  amicus_sc_pet_pro_se  amicus_sc_pet_vet_atty_ln  i.sc_term i.coa_circuit)

** Generating Marginal Effects

reg sc_cert_granted amicus panel_odd_party_out respondent_odd_party_out petitioner_odd_party_out  amicus_petitioner_odd_party_out   coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  amicus_panel_odd_party_out  amicus_respondent_odd_party_out      amicus_coa_enbanc  amicus_coa_panel_dissent  amicus_coa_lc_reversed  amicus_dismissed  amicus_sc_cert_sg_petitioner  amicus_sc_cert_sg_respondent  amicus_sc_pet_corp  amicus_sc_resp_corp  amicus_sc_pet_pro_se  amicus_sc_pet_vet_atty_ln  i.sc_term i.coa_circuit if civil==1 , cluster(sc_term)

margins, at(petitioner_odd_party_out = (0 1) amicus= (0 1))




